package cn.iocoder.an.module.mold.controller.admin.equipmentkeepconfig.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 设备保养配置新增/修改 Request VO")
@Data
public class EquipmentKeepConfigSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "32718")
    private Long id;

    @Schema(description = "配置类型1按分类2按设备", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "配置类型1按分类2按设备不能为空")
    private Integer configType;

    @Schema(description = "根据配置类型，可能是分类ID或设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2384")
    @NotNull(message = "根据配置类型，可能是分类ID或设备ID不能为空")
    private Long targetId;

    @Schema(description = "保养项ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11673")
    @NotEmpty(message = "保养项ID不能为空")
    private Long itemId;

}